//package com.redpig.aspect;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.access.AccessDeniedException;
//import org.springframework.stereotype.Component;
//import org.springframework.transaction.support.TransactionSynchronizationManager;
//
//import javax.sql.DataSource;
//
//@Slf4j
//@Component
//@Aspect
//public class SystemAspect {
//
//    @Autowired
//    DataSource dataSource;
//
//    //使用切入点引用
//    @Around("execution(* com.redpig.service.*.*.*(..))")
//    public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
//        log.info("环绕增强……1");
//        Object ret = proceedingJoinPoint.proceed();
//        log.info("环绕增强……2");
////        throw new RuntimeException("测试");
//        return ret;
//    }
//
//}
